home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / NET / IRDA / WRAPPER.H < prev   
C/C++ Source or Header  |  1999-09-17  |  2KB  |  55 lines

  1. /*********************************************************************
  2.  *                
  3.  * Filename:      wrapper.h
  4.  * Version:       1.0
  5.  * Description:   IrDA Wrapper layer
  6.  * Status:        Experimental.
  7.  * Author:        Dag Brattli <dagb@cs.uit.no>
  8.  * Created at:    Mon Aug  4 20:40:53 1997
  9.  * Modified at:   Fri Jan 29 10:15:46 1999
  10.  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  11.  * 
  12.  *     Copyright (c) 1998 Dag Brattli <dagb@cs.uit.no>, All Rights Reserved.
  13.  *     
  14.  *     This program is free software; you can redistribute it and/or 
  15.  *     modify it under the terms of the GNU General Public License as 
  16.  *     published by the Free Software Foundation; either version 2 of 
  17.  *     the License, or (at your option) any later version.
  18.  *
  19.  *     Neither Dag Brattli nor University of Troms° admit liability nor
  20.  *     provide warranty for any of this software. This material is 
  21.  *     provided "AS-IS" and at no charge.
  22.  *
  23.  ********************************************************************/
  24.  
  25. #ifndef WRAPPER_H
  26. #define WRAPPER_H
  27.  
  28. #include <linux/types.h>
  29. #include <linux/skbuff.h>
  30.  
  31. #include <net/irda/irda_device.h>
  32.  
  33. #define BOF  0xc0 /* Beginning of frame */
  34. #define XBOF 0xff
  35. #define EOF  0xc1 /* End of frame */
  36. #define CE   0x7d /* Control escape */
  37.  
  38. #define STA BOF  /* Start flag */
  39. #define STO EOF  /* End flag */
  40.  
  41. #define IR_TRANS 0x20    /* Asynchronous transparency modifier */       
  42.  
  43. enum {
  44.     OUTSIDE_FRAME = 1, 
  45.     BEGIN_FRAME, 
  46.     LINK_ESCAPE, 
  47.     INSIDE_FRAME
  48. };
  49.  
  50. /* Proto definitions */
  51. int  async_wrap_skb( struct sk_buff *skb, __u8 *tx_buff, int buffsize);
  52. void async_unwrap_char( struct irda_device *, __u8 byte);
  53.  
  54. #endif
  55.